package com.example.common;

public class RedisContants {
    public static final String LOGIN_CODE_KEY = "login:code:";
    //验证码保存时间1分钟
    public static final Long LOGIN_CODE_TTL = 2L;
    public static final String LOGIN_USER_KEY = "login:token:";
    //token保存时间30天
    public static final Long LOGIN_USER_TTL = 43200L;

    public static final String USER_NICK_NAME_PREFIX = "user_";

    public static final String LOGON_USER_ICON = "https://www.kdy.icu/images/touxiang.jpg";

    //商品查询缓存
    public static final String CACHE_SHOP_KEY = "cache:shop:";
    //商品类型查询缓存
    public static final String CACHE_SHOPTYPE_LIST_KEY = "cache:shoptype";

    public static final Long CACHE_SHOP_TTL = 30L;
    //缓存穿透——时间2分钟
    public static final Long CACHE_NULL_TTL = 1L;

    //互斥锁
    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 10L;

    //逻辑过期
    public static final Long LOGIC_EXPIRE_TTL = 60L;

    //布隆过滤器
    public static final String BLOOM_FILTER_SHOP = "BloomFilterShopID";

    //优惠券库存秒杀
    public static final String SECKILL_STOCK_KEY = "seckill:stock:";

    //达人探店——点赞
    public static final String BLOG_LIKED_KEY = "blog:liked:";

    //关注推送
    public static final String FEED_KEY = "feed:";

    //附近商铺
    public static final String SHOP_GEO_KEY = "shop:geo:";

    //用户签到
    public static final String USER_SIGN_KEY = "sign:";

}
